open Polynome
open Printf


let _ =

print_endline (string_of_int (power 5 2));
print_endline (string_of_int (application [(2,2);(2,3);(4,4)] 2));

print_endline "";

List.iter (fun (x,y) -> print_endline ("("^(string_of_int x)^", "^(string_of_int y)^");")) 
(Polynome.add [(1,2);(2,6);(7,8);(2,12)] [(1,4);(3,6);(1,9)]);

print_endline "";

List.iter (fun (x,y) -> print_endline ("("^(string_of_int x)^", "^(string_of_int y)^");"))
(soustract [(1,2);(2,6);(7,8);(2,12)] [(1,4);(3,6);(1,9)]);

print_endline "";

List.iter (fun (x,y) -> print_endline ("("^(string_of_int x)^", "^(string_of_int y)^");"))
(deriv [(2,2);(2,3);(4,4)]);

